package com.lagou.service;

import com.lagou.bean.UserBean;
import com.lagou.dao.UserDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    //将DAO注入Service层
    @Resource
    private UserDao userDao;

    public UserBean loginIn(String name, String password) {
        return userDao.getUserInfo(name, password);
    }
}
